package com.lhy.skywalking.product;

import com.lhy.skywalking.common.domain.AjaxResult;
import com.lhy.skywalking.product.dto.ProductDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(contextId = "remoteProductService", value = "product-service")
public interface ProductFeignService {

    @GetMapping("/products/{id}")
    AjaxResult findById(@PathVariable("id") Long id);
}
